-
Notifications
You must be signed in to change notification settings - Fork 7
Improve prefetch & site rendering #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Improve prefetch & site rendering #253
Conversation
Add a /browse page showing all publications with client-side pagination, sorting, and card-based layout. Add Browse nav link to header. Convert homepage Browse Articles button from search dialog trigger to /browse link.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
✅ Deploy Preview for insightjournal ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@thewtex Can you have a look at this? 👀 After heavy optimization of the IPFS DAG discovery in The meat however is in 97db37d, where I took the liberty of implementing lazy filetree rendering. Now even the chonkiest of publications load quickly :) |
Main change is to lazily render the filetree on the client, as the existing UI tried to synchronously render DOM elements for every single file in the tree. This broke down terribly for very large publications, e.g. pub 874 with ~12k files in the tree took the backend ~18s to respond, and the subsequent render froze the browser for ~3 minutes.
Only the file tree is lazily rendered on the client, all metadata etc is still SSR so this shouldn't interfere with any indexers.
Misc:
package-lock.jsonNote:
This branch is based on #252